﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.DTO
{
    public class OrderDetailPost
    {
        /// <summary>
        /// 外部单号
        /// </summary>
        [MaxLength(20,ErrorMessage = "外部订单号最大长度为20")]
        [Display(Name ="外部订单号")]
        public string OuterNo { get; set; } = "";

        /// <summary>
        /// 要求设计工具名称
        /// </summary>
        [MaxLength(20,ErrorMessage = "外部订单号最大长度为20")]
        [Display(Name ="设计工具")]
        public string DesignTool { get; set; }

        /// <summary>
        /// 价格模板Id
        /// </summary>
        [Display(Name ="价格模板Id")]
        public Guid? PriceTemplateId { get; set; }


        /// 牙位集合
        [Display(Name = "牙位集合")]
        public List<ToothPositionPost> ToothList { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        [Display(Name = "价格")]
        public decimal Price { get; set; }

        /// <summary>
        /// 上传数据类型
        /// </summary>
        [MaxLength(20)]
        [Required(ErrorMessage ="{0}必填")]
        [Display(Name = "上传数据类型")]
        public string DataType { get; set; }

        /// <summary>
        /// 上传的文件(附件)地址
        /// </summary>
        [Display(Name ="附件地址")]
        public virtual List<string> FileNames { get; set; }

        /// <summary>
        /// 设计需求
        /// </summary>
        [MaxLength(500)]
        public string Requirement { get; set; }

        /// <summary>
        /// 设计需求文件地址
        /// </summary>
        [MaxLength(100)]
        public string RequirementFile { get; set; }
    }
}
